package com.hystrix.fallback;

import com.hystrix.feign.MemberApiFeign;
import com.hystrix.feign.MemberApiFeignWithHystrix;
import org.springframework.stereotype.Component;

@Component
public class MemberApiFallback  implements MemberApiFeignWithHystrix {
    @Override
    public String getMember() {
        System.out.println("线程池名称:"+Thread.currentThread().getName());
        return "您好，当前系统繁忙，当前服务已被降级，请稍后在尝试！MemberApiFallback";
    }
}
